package com.hu.zhcc.shiro.service.lww.member;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import com.hu.zhcc.shiro.dao.lww.member.TMemberMapper;
import com.hu.zhcc.shiro.entity.lww.member.MemberDy;
import com.hu.zhcc.shiro.entity.lww.member.TMember;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author luowuwen
 * @since 2021-06-15
 */
@Service
public class TMemberServiceImpl extends ServiceImpl<TMemberMapper, TMember> implements TMemberService {

    @Autowired
    private TMemberMapper tMemberMapper;

    @Override
    public List<TMember> queryAll() {
        return tMemberMapper.queryAll();
    }

    @Override
    public boolean addmember(TMember tMember) {
        return tMemberMapper.addmember(tMember);
    }

    @Override
    public boolean updatemember(TMember tMember) {
        return tMemberMapper.updatemember(tMember);
    }

    @Override
    public boolean deletemeber(TMember tMember) {
        return tMemberMapper.deletemeber(tMember);
    }

    @Override
    public String selectIdCard(String idCard) {
        String s = tMemberMapper.selectIdCard(idCard)==null?"0":tMemberMapper.selectIdCard(idCard);
        return s;
    }

    @Override
    public MemberDy selectDynamicinfoByid(int id) {
        return tMemberMapper.selectDynamicinfoByid(id);
    }

    @Override
    public boolean adduser(TMember tMember) {
        return tMemberMapper.adduser(tMember);
    }

    @Override
    public String selectid() {
        return tMemberMapper.selectid();
    }

    @Override
    public boolean addfileNumber(TMember tMember) {
        return tMemberMapper.addfileNumber(tMember);
    }
}
